package icselab.appmodule.ws;

import icselab.appmodule.service.*;

public class DeployServiceImpl implements IDeployService
{	
	
	public String deploy(String sUrl){		
		DeployService dpService = new DeployService();
		String deployInfo = dpService.deploy(sUrl);
		return deployInfo;
	} 
    
	public String stop(String instanceID){
		DeployService dpService = new DeployService();
		String stopInfo = dpService.stopInstance("ws"+instanceID);
		return stopInfo;
	}
	
	public String start(String instanceID){
		DeployService dpService = new DeployService();
		String startInfo = dpService.startInstance("ws"+instanceID);
		return startInfo;
	}
	
	public String remove(String instanceID){
		DeployService dpService = new DeployService();
		String removeInfo = dpService.removeInstance("ws"+instanceID);
		return removeInfo;
	}
	
}